xen/arm64: head: Setup TTBR_EL2 in enable_mmu() and add missing isb
authorJulien Grall <julien.grall@arm.com>
Sat, 13 Apr 2019 21:55:18 +0000 (22:55 +0100)
committerJulien Grall <julien.grall@arm.com>
Sat, 7 Sep 2019 11:09:45 +0000 (12:09 +0100)
commit64f996dee1a3cef9d5bcbd566522316ba133a1f8
treee8a84780f6aa15daf1f9b1fab51fded69f2e2e3b
parent7e14a47e7c731b5dd3feb9b81319764f474ad59a
xen/arm64: head: Setup TTBR_EL2 in enable_mmu() and add missing isb

At the moment, TTBR_EL2 is setup in create_page_tables(). This is fine
as it is called by every CPUs.

However, such assumption may not hold in the future. To make change
easier, the TTBR_EL2 is not setup in enable_mmu().

Take the opportunity to add the missing isb() to ensure the TTBR_EL2 is
seen before the MMU is turned on.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm64/head.S